package com.qf.fc.controller;



import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.qf.fc.Param.CommentLikeAdd;
import com.qf.fc.entity.CommentLike;
import com.qf.fc.service.CommentLikeService;
import com.qf.fc.vo.R;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.extern.slf4j.Slf4j;

import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.io.Serializable;
import java.util.List;

/**
 * 评论点赞表(CommentLike)表控制层
 *
 * @author makejava
 * @since 2024-09-23 23:34:47
 */
@RestController
@RequestMapping("/api/clike/")
@Tag(name = "评论点赞接口") //knife4j 接口文档
@Slf4j //日志
public class CommentLikeController {
    /**
     * 服务对象
     */
    @Resource
    private CommentLikeService service;

    @PostMapping("add")
    public R<String> addCl(@RequestBody CommentLikeAdd add){
        return service.addLike(add);
    }
    @GetMapping("myclikes")
    public R<CommentLike> myClikes(Integer uid){
        return service.queryMy(uid);
    }


}

